Hemi.include("hemi.storage");
function TestStorageSupported(){
	this.Assert(Hemi.storage.testStorageSupported(), "Storage is not supported");
	this.log("Storage Type = " + Hemi.storage.getStorageProvider().storage_type);
}

function TestStorageAccess(){
	this.Assert(Hemi.storage.testStorageSupported(), "Storage is not supported");
	var sPrevVal = Hemi.storage.getStorageProvider().getItem("__test_value");
	this.log("Last Storage Value = " + sPrevVal);
	Hemi.storage.getStorageProvider().setItem("__test_value",(new Date()).getTime());
	var sCurVal = Hemi.storage.getStorageProvider().getItem("__test_value");
	this.Assert((sCurVal && sCurVal != sPrevVal), "Storage value was not properly set and retrieved");
}
/*
function XXTestSQLite(){
  var file = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile);  
   file.append("my_db_file_name.sqlite");  
   var storageService = Components.classes["@mozilla.org/storage/service;1"].getService(Components.interfaces.mozIStorageService);  
   var mDBConn = storageService.openDatabase(file); // Will also create the file if it does not exist  
}
*/